<?php

namespace app\index\model;

use think\Model;

class Spu extends Model
{
    public function sku()
    {
        return $this->hasMany('SpuSku', 'sid', 'id');
    }

    public function goods()
    {
        return $this->belongsTo('Goods', 'gid', 'id');
    }
}